/**
 * Created by Administrator on 2018/10/12 0012.
 */
function user_index() {
    location.href = url_list.user_index;
}function single() {
    location.href = url_list.single;
}function searcha() {
    location.href = url_list.search;
}function archive() {
    location.href = url_list.archive;
}function generic(pid) {
    location.href = url_list.generic+'/'+pid;
}function elements() {
    location.href = url_list.elements;
}function person() {
    location.href = url_list.person;
}
//写博客页面
function write_blog() {
    location.href = url_list.write_blog;
}
//修改博客页面
function rewrite_blog(id) {
    var id=id;
    location.href = url_list.rewrite_blog+'/'+id;
}

//文章详情页面
function articleInfo(id) {
    var id=id;
    location.href = url_list.articleInfo+'/'+id;
}

//博主首页文章
function admin_archive(userid,key,type) {
    if(key=='' || key==undefined){
        location.href = url_list.archive+'/'+userid;
    }else {
        if(type==1){
            location.href = url_list.archive+'/'+userid+'&&'+key;
        }else {
            location.href = url_list.archive_time+'/'+userid+'&&'+key;
        }
    }
}

function myArticleList() {
    location.href = url_list.myArticleList;
}

function login() {
    location.href = url_list.login;
}function logout() {
    location.href = url_list.user_logout;
}